KASAN_SANITIZE_rtos_flag.o := n
ifdef CONFIG_KASAN
CFLAGS_rtos_flag.o += -DDISABLE_BRANCH_PROFILING
endif

obj-y					+= bugfix/
obj-$(CONFIG_RTOS_DROL)			+= drol/
obj-$(CONFIG_HISI_WATCHDOG)		+= watchdog/
obj-$(CONFIG_RTOS_GPIO_LOCK)		+= gpio_lock.o
obj-$(CONFIG_CACHE_ECC_RECORD_ENABLE)        +=cache_ecc_check.o
obj-$(CONFIG_RTOS_HAL_EASY_DFX_ENABLE)        +=easy_dfx_hook.o
obj-$(CONFIG_RTOS_RESET_NOTIFIER)	+= rtos_reset_notifier.o
obj-$(CONFIG_RTOS_HAL_PCIE_AER_NOTIFY)  += rtos_pcie_aer_notifier.o
obj-$(CONFIG_RTOS_BOOT_TIMESTAMP)	+= boot_timestamp.o
obj-y					+= common.o
obj-$(CONFIG_RTOS_HAL_GET_RTOS_GIC_TYPE)	+= gic.o

obj-$(CONFIG_RTOS_LED)				+= led/

obj-$(CONFIG_RTOS_CPU_PARAM)		+= cpu_param.o
obj-$(CONFIG_RTOS_HAL_INVALIDATE_BTB)	+= rtos_flag.o

obj-$(CONFIG_RTOS_HAL_SHARE_IPI)	+= rtos_share_ipi.o

ifndef CONFIG_X86
obj-$(CONFIG_FIQ_GLUE)		+= fiq_glue_com/
else
obj-$(CONFIG_FIQ_GLUE)		+= fiq_glue_com/fiq_list.o
endif

obj-$(CONFIG_ARM64)		+= arm64/
obj-$(CONFIG_RTOS_HAL_FIQ_ARM_WITH_TF)	+= arm64/
#uncomment while needed
ifndef CONFIG_ARCH_STM32
obj-$(CONFIG_ARM)		+= arm/
endif
obj-$(CONFIG_PPC)		+= powerpc/
obj-$(CONFIG_X86) += x86/
obj-$(CONFIG_RTOS_HAL_UGIC_IMIT)		+= nton/

obj-$(CONFIG_RTOS_HAL_VECTORS_PAGE_NOWRITE) += vector_protect/
obj-$(CONFIG_RTOS_HAL_ACPI_OP) += acpi_op.o

obj-$(CONFIG_RTOS_HAL_ARCH_TIMER_JUMP_DFX) += arch_timer_jump_dfx.o
obj-$(CONFIG_RTOS_CHECK_PAGE_ATTR) += pageattr/

obj-$(CONFIG_RTOS_HAL_LINEAR_MAP) += linear.o
obj-$(CONFIG_RTOS_HAL_NO_DEVMEM) += no_devmem.o
